package com.ynkbny.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zelin.wang
 * @description 角色关联实体
 * @date 8/16/2023
 */
@Data
@ApiModel(value = "用户权限关联表", description = "")
@TableName("role_and_router")
public class RoleWithRouter {
    @TableId(value = "id", type = IdType.AUTO)
    int id;
    @ApiModelProperty(value = "角色id", example = "")
    @TableField(value = "role_id")
    int roleId;
    @ApiModelProperty(value = "菜单id", example = "")
    @TableField(value = "router_id")
    int routerId;
}
